
Route::group(function () {
    //砍价
        Route::get("/question_index", "app\admin\controller\Question@index")->name("question.index");// 列表
        Route::get("/question_detail", "app\admin\controller\Question@detail")->name("question.detail");// 详情
        Route::get("/question_record", "app\admin\controller\Question@record")->name("question.record");// 答题记录
        Route::post("/question_delete", "app\admin\controller\Question@delete")->name("question.delete");// 删除
        Route::post("/question_delete_option", "app\admin\controller\Question@del_option")->name("question.delete_option");// 删除选项
        Route::post("/question_create", "app\admin\controller\Question@create")->name("question.create");// 创建  
        Route::post("/question_edit", "app\admin\controller\Question@edit")->name("question.edit");// 编辑
        Route::post("/question_import", "app\admin\controller\Question@import")->name("question.import");// 导入
        Route::post("/question_export", "app\admin\controller\Question@question_export")->name("question.question_export");// 答题导出
    })
->allowCrossDomain()// 跨域
->middleware(middleware\Auth::class)// jwt认证
->middleware(middleware\Permission::class);// 权限认证